﻿ConfigHelper = function () {
    this.getPeopleCategoryFieldSet = function(categoryName, setName) {
        var byCategory = PeopleFieldConfig.singleOrDefault(function (item) {
            return item.PersonCategoryName == categoryName;
        });
        if (byCategory == undefined)
            byCategory = PeopleFieldConfig[0];
        return byCategory.FieldConfig.single(function (item) {
            return item.FieldGroup == setName;
        });
    }
}

configHelper = new ConfigHelper();